WooCommerce\PayPalCommerce\Applepay\Assets\ApplePayButton B

Total Complexity 100
Dependencies 13
Dependents 2
Total lines 1,078
Lines of code 691
Logical lines of code 341
Comment lines 260
Methods 32
Properties 13

Methods 32

Method Rating Maintainability Complexity Lines of code
render()
A
39 12 76
update_shipping_contact()
A
41 9 63
initialize()
A
48 8 36
create_wc_order()
S
45 5 50
calculate_totals_cart_page()
S
48 5 41
update_shipping_method()
S
49 5 35
cart_shipping_methods()
S
50 5 32
update_posted_data()
S
46 4 40
which_calculate_totals()
S
53 5 24
calculate_totals_single_product()
S
49 4 37
cart_calculation_results()
S
57 4 17
add_apple_onboarding_option()
S
57 4 17
save_old_cart()
S
63 3 11
bootstrap_ajax_request()
S
52 1 34
reload_cart()
S
67 3 8
is_enabled()
S
69 3 7
enqueue_styles()
S
63 2 12
validate()
S
63 2 11
enqueue()
S
56 1 22
enqueue_admin()
S
56 1 22
customer_address()
S
59 1 16
clear_current_cart()
S
70 2 7
prepare_cart()
S
59 1 15
is_nonce_valid()
S
64 2 10
getShippingPackages()
S
60 1 13
__construct()
S
60 1 13
create_wc_countries()
S
80 1 3
applepay_data_object_http()
S
80 1 3
applepay_button()
S
72 1 7
should_load_script()
S
82 1 3
script_data()
S
81 1 3
script_data_for_admin()
S
81 1 3